package com.example.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Timestamp;
import java.util.regex.Pattern;

@Getter
@Setter
@ToString
@TableName("order")
public class OrderDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer accountId;

    private Long amount;

    @JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss")
    private Timestamp orderTime;
}
